package com.symone.webcms.service;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.symone.webcms.model.UserLog;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author archerchu
 * @since 2018-11-18
 */
public interface UserLogService extends IService<UserLog> {

    boolean insert(UserLog log);

    Page<UserLog> findPage(Page<UserLog> page, Wrapper<UserLog> entity);

    List<String> getDistinctYmByCreateTime(String userName);

    int delete(long id);

    boolean deleteFlagById(long id);

    boolean deleteFlagByUid(long uid);

    int clear();

    int deleteAll();

}
